package com.demo.component;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

/**
 * Created by IntelliJ IDEA.
 * User: zm
 * Date: 2023/2/14
 */
@Controller // 将对象存储到 Spring 中
public class UserController {
    public void sayHi(String name) {
        System.out.println("Hi," + name);
    }
}
